def top_left_rect(topleft,w,h):
    return {'topleft':topleft,'w':w,'h':h
        }
def point_collide_with_rect(p,rectangle):
    x,y = p
    rx,ry = rectangle['topleft']
    if rx < x < rx + rectangle['w']:
        if ry < y < ry + rectangle['h']:
            return True
    return False
